/**
 * @Author: WangHongTao
 * @CreateTime: 2006
 * @Description:
 * @Copyright:  2006 Union Operation Support System.
 */
package org.uoss.core;

import java.util.Properties;

public interface Context {
	
	/**
	 * Return all properties of current context.
	 * @return
	 */
	Properties getContextEnv();
	
	/**
	 * Getting context value by label
	 * @param label
	 * @return
	 */
	String getContextParam(String label);
	
	/**
	 * Getting context value by label,
	 * if value is empty,return default value.
	 * @param label
	 * @param defaultvalue
	 * @return
	 */
	String getContextParam(String label,String defaultvalue);
	/**
	 * Add new context
	 * @param prop
	 */
	void addContextEnv(Properties prop);
	/**
	 * Add new value of context
	 * @param label
	 * @param value
	 */
	void addContextParam(String label,String value);
	
}
